package com.panfeng.xcloud.boss.provider.member.dao.mapper;

import com.panfeng.xcloud.dao.member.entity.UserMaxActive;
import com.panfeng.xcloud.dao.member.mapper.UserMaxActiveMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMaxActiveMapperExt extends UserMaxActiveMapper {

    List<String> findUserMaxActiveNotExistParentId(String userId);

    List<String> findUserMaxActiveNotExistUserId(String userId);

    void batchAdd(@Param("userMaxActiveList") List<UserMaxActive> userMaxActiveList);

    List<UserMaxActive> findParentMaxActive(String userId);

    void batchUpdate(@Param("userMaxActiveList") List<UserMaxActive> userMaxActiveList);

    UserMaxActive findByUserId(String userId);

    void updateByUserId(UserMaxActive userMaxActive);

}